package com.kedacom.ctsp.authority.entity;

import com.kedacom.ctsp.web.entity.AbstractCrudEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 数据字典
 *
 * @author zhangqun
 * @create 2018-05-8 15:00
 **/
@Entity
@Table(name = "f_data_dict")
@Getter
@Setter
public class DataDict extends AbstractCrudEntity<String> {

    public static final String STATUS="status";

    public static final String CODE="code";

    public static final String CATEGORY="category";
    /**
     * 主键id ，自增长
     */
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @ApiModelProperty("主键id")
    private String id;

    private String name;

    private String code;

    private String category;

    private String parentId;

}
